From 29293f3be4eeb2f88bb9c568b22f476eae6d8a72 Mon Sep 17 00:00:00 2001 From: Robert Lipe Date: Sat, 14 Oct 2017 21:59:24 -0500 Subject: [PATCH] Correctly read diff and terr from geo format. Thank you, Rick Richardson. --- geo.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geo.cc b/geo.cc index 5c785f381..e6f4560a0 100644 --- a/geo.cc +++ b/geo.cc @@ -74,9 +74,9 @@ void GeoReadLoc() waypt_add_url(wpt, reader.readElementText(), a.value("text").toString()); } else if (current_tag == "/loc/waypoint/difficulty") { - wpt->gc_data->diff = reader.readElementText().toInt() * 10; + wpt->gc_data->diff = reader.readElementText().toDouble() * 10; } else if (current_tag == "/loc/waypoint/terrain") { - wpt->gc_data->terr = reader.readElementText().toInt() * 10; + wpt->gc_data->terr = reader.readElementText().toDouble() * 10; } else if (current_tag == "/loc/waypoint/container") { wpt->gc_data->container = wpt_container(reader.readElementText()); } -- 2.30.2